﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace FamilyTree
{
    public partial class TreedeleteID : Form
    {
        public TreedeleteID()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Equals("123"))
            {
                MessageBox.Show("验证通过", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
                this.Close();
                TreeDel treeDel = new TreeDel();
                treeDel.ShowDialog();
            }
            else
            {
                MessageBox.Show("密码错误！", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }

        private void TreedeleteID_Load(object sender, EventArgs e)
        {

        }
    }
}
